/**
 * 填写物流单号
 * 
 * @param {}
 *            orderId
 * @return {}
 */
function addLogisticNoWindows(orderId) {
	var orderProduceLosgisticForm = new Ext.FormPanel({
				id : "orderProduceLosgisticForm",
				frame : true,
				bodyBorder : false,
				defaults : {
					widht : 200,
					anchor : "100%,100%"
				},
				defaultType : "textfield",
				items : [{
							name : "id",
							xtype : "hidden",
							value : orderId
						}, {
							fieldLabel : "物流单号",
							name : "logisticNo",
							allowBlank : false
						}]
			});
	var orderProduceLosgisticWindow = new Ext.Window({
		id : "orderProduceLosgisticWindow",
		title : "填写物流单号",
		width : 300,
		height : 150,
		closable : true,
		modal : true,
		layout : "fit",
		autoDestroy : true,
		draggable: false, // 不可拖动
		resizable:false,  // 不可调整
		plain : true,
		buttonAlign : "center",
		items : orderProduceLosgisticForm,
		buttons : [{
			text : "保存",
			width : 60,
			handler : function() {
				var uploadForm = orderProduceLosgisticForm.getForm();
				if (uploadForm.isValid()) {
					Ext.Msg.confirm("信息确认", "确认添加物流单号吗？", function(c) {
						if (c == "yes") {
							uploadForm.submit({
								url : __ctxPath
										+ "/orderManager/updateOrderLogisticNo",
								params : {
									orderId : orderId
								},
								method : "post",
								waitTitle : "请稍后",
								waitMsg : "正在提交数据...",
								success : function(response, options) {
									queryOrdersProduce();
									orderProduceLosgisticWindow.close();
									var jsonData = Ext.util.JSON
											.decode(options.response.responseText);
									Ext.MessageBox.show({
												title : "信息提示",
												msg : jsonData.data,
												buttons : Ext.MessageBox.OK,
												icon : Ext.MessageBox.INFO
											});
								},
								failure : function(response, options) {
									var jsonData = Ext.util.JSON
											.decode(options.response.responseText);
									Ext.MessageBox.show({
												title : "操作信息",
												msg : jsonData.data,
												buttons : Ext.MessageBox.OK,
												icon : Ext.MessageBox.ERROR
											});
									orderProduceLosgisticWindow.close();
								}
							});
						}
					})
				}
			}
		}, {
			text : "重置",
			width : 60,
			handler : function() {
				orderProduceLosgisticForm.form.reset();
			}
		}, {
			text : "取消",
			width : 60,
			handler : function() {
				orderProduceLosgisticWindow.close();
			}
		}]
	});
	return orderProduceLosgisticWindow;
};